<HTML><HEAD><TITLE>sequence(+List, +Item, ?MaxLength, ?Occurrences)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(fd)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>sequence(+List, +Item, ?MaxLength, ?Occurrences)</H1>
MaxLength is the longest sequence of Item occurring in List and Occurrences
is the total number of occurrences of Item in List.


<DL>
<DT><EM>+List</EM></DT>
<DD>A list of finite domain variables or integers
</DD>
<DT><EM>+Item</EM></DT>
<DD>An integer
</DD>
<DT><EM>?MaxLength</EM></DT>
<DD>An integer finite domain variable or an integer.
</DD>
<DT><EM>?Occurrences</EM></DT>
<DD>An integer finite domain variable or an integer.
</DD>
</DL>
<H2>Description</H2>
   The constraint is satisfied when MaxLength is the longest sequence of
   Item occurring in List and Occurrences is the total number of
   occurrences of Item in List.

<P>

<H3>Fail Conditions</H3>
   None.


<H3>Resatisfiable</H3>
   No.
<H2>See Also</H2>
<A HREF="../../lib/fd/contigs-5.html">contigs / 5</A>
</BODY></HTML>
